<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="/common/tags.jsp" %>
<!DOCTYPE html>
<html>
<head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="UTF-8">
    <meta name="Keywords" content="">
    <meta name="description" content="">
    <%@include file="/common/style.jsp" %>
    <link rel="stylesheet" type="text/css" href="${static_url}/ui/app/assets/css/uc.css">


    <%@include file="/common/javascript.jsp" %>
</head>
<body class="wide">
<!-- 头部 -->
<%@include file="/common/myHeader.jsp" %>
<!-- /头部 -->

<!-- 主体 -->
<div style="border-top: solid 1px #dcdcdc;" class="mb10"></div>
<div class="g">
    <!--面包屑 -->
   <%-- <div class="breadcrumb-area"><a href="/" title="首页">首页</a>&nbsp;&nbsp;\&nbsp;&nbsp;<em
            id="personCenter"><span>我的商城</span></em><em id="pathPoint"></em><span id="pathTitle"></span></div>--%>
</div>
<div class="h20"></div>
<div class="g">
    <div class="fr u-4-5"><!-- 20141212-栏目-start -->
        <div class="section-header">
            <div class="fl">
                <h2><span>我的评价</span></h2>
            </div>
            <div class="fr">
                <div class="ec-tab" id="ec-tab">
                  <ul>
                        <li class="current"><a href="${ctx}/my/buyer/comment/index.htm?tab=tab1" onclick=""><span>最近三月商品</span></a>
                        </li>
                        <li class=""><a href="${ctx}/my/buyer/comment/index.htm?tab=tab2" onclick=""><span>三个月前商品</span></a></li>
                    </ul>
                    <div class="ec-tab-arrow" style="width: 110px; left: 0px; overflow: hidden;"></div>
                </div>
            </div>
        </div>
        <!-- 20141212-栏目-end -->
        <!-- 20141222-我的订单-订单类别-start -->
        <%-- <div class="myOrder-cate" id="myOrder-cate">

           <ul>
               <li class="current"><a href="javascript:;"><span>全部<em></em></span></a>
               </li>
              <li style="display: list-item;"><a href="javascript:;" onclick="ec.member.orderList.check(this,'unpaid');"><span>待支付<em id="count-seltime-2" class="hide" data-num="0" style="display: none;">0</em></span></a></li>
                   <li><a href="javascript:;" onclick="ec.member.orderList.check(this,'nocomment');"><span>待评价<em id="nocommentNum" data-num="0" data-his="4" style="display: none;">0</em></span></a></li>
                   <li style="display: list-item;"><a href="javascript:;" onclick="ec.member.orderList.check(this,'send');"><span>待收货<em id="count-seltime-3" class="hide" data-num="0" style="display: none;">0</em></span></a></li>
                   <li><a href="javascript:;" onclick="ec.member.orderList.check(this,'finished');"><span>已完成</span></a></li>
                   <li><a href="javascript:;" onclick="ec.member.orderList.check(this,'canceled');"><span>已取消</span></a></li>
             </ul>
        </div>--%>
        <!-- 20141222-我的订单-订单类别-end -->

        <!-- 20141222-我的订单-列表-start -->
        <form id="form1" action="${ctx}/my/buyer/comment/delete.htm" method="post" >
            <input type="hidden" id="delId" name="id" value="">
        <div class="myOrder-record" id="myOrders-list-content">
            <!-- 20141222-我的订单-列表-订单合并-start -->
            <%--  <div class="myOrder-control">
                <label class="inputbox" for="checkAllBox">
                     <input class="checkbox" type="checkbox" id="checkAllBox" name="checkAllBox"><span>全选</span>
                 </label>
                <a href="javascript:;" class="button-operate-merge-pay" onclick="ec.member.orderList.mergePay();"><span>合并支付</span></a>
            </div>--%>
            <!-- 20141222-我的订单-列表-订单合并-end -->
            <div class="list-group-title">
                <table border="0" cellpadding="0" cellspacing="0">
                    <thead>
                    <tr>
                        <th class="col-pro">商品</th>
                        <th class="col-price">评价</th>
                        <%--<th class="col-quty">数量</th>--%>
                        <th class="col-pay">评分</th>
                        <th class="col-operate">操作</th>
                    </tr>
                    </thead>
                </table>
            </div>
            <div class="list-group" id="list-group">
                <c:forEach items="${list}" var="item" varStatus="status">
                <div class="list-group-item">

                    <div class="o-pro">
                        <table border="0" cellpadding="0" cellspacing="0">
                            <tbody>

                            <tr>
                                <td class="col-pro-img">
                                    <p class="p-img">
                                        <a title="" href="${ctx}/detail.htm?id=${item.spid}" target="_blank">
                                            <img src="${fileServerUrl}/${item.image_url}" >
                                        </a>
                                    </p>
                                </td>
                                <td class="col-pro-info">
                                    <p class="p-name">
                                        <a title="" target="_blank" href="${ctx}/detail.htm?id=${item.spid}" target="_blank">
                                            ${item.name}
                                        </a>
                                    </p>
                                </td>
                                <td class="col-price"><span>${item.content}</span></td>
                                <td  class="col-pay">
                                    <p><span>${item.score1}</span></p>

                                </td>
                                <td rowspan="1" class="col-operate">
                                    <%--<c:if test="${item.state==0}">待确认</c:if>--%>
                                    <%--<p class="p-button">
                                        <a class="button-operate-revie" href="##" orderinfo="" title="我要评论">
                                            <span>我要评论</span>
                                        </a>
                                    </p>
                                    <p class="p-link">
                                        <a href="javascript:;" data-href="##"onclick="">
                                            退换货
                                        </a>
                                    </p>--%>
                                    <p class="p-link"><a href="javascript:void(0);" onclick="del('${item.id}')" class="button-operate-edit">删除</a></p></td>
                            </tr>

                            </tbody>
                        </table>
                    </div>
                </div>
                </c:forEach>
            </div>

            <%--无记录
            <div class="list-group" id="list-group"><div class="list-group-empty">您暂时没有相关记录。</div></div>
            <div class="list-group-page">
                <div class="pager" id="list-pager" style="display: none;"></div>
            </div>--%>
        </div>
        <!-- 我的订单-列表-end -->
        </form>
    </div>
    <div class="fl u-1-5">
        <!--左边菜单 -->
        <%@include file="left.jsp" %>
    </div>
    <div class="hr-45"></div>


</div>
<!-- /主体 -->


<!-- 底部 -->
<%@include file="/common/footer.jsp" %>
<!-- /底部 -->

</body>
</html>
<script type="text/javascript">
$(function(){
    <c:if test="${range == '1'}">
        $(".ec-tab-arrow").css("left","0");
    </c:if>
    <c:if test="${range == '2'}">
        $(".ec-tab-arrow").css("left","110px");
    </c:if>
});
    function del(id){
        $("#delId").val(id);
        $("#form1").submit();
    }

</script>
